
/**
 * Project Name:cats-zcjc
 * File Name:Station.java
 * Package Name:com.catsic.zcjc.entity
 * Date:2017年10月26日下午4:24:18
 * Copyright (c) 2017, oa.catsic.com All Rights Reserved.
 */
 
package com.catsic.zcjc.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.catsic.base.BaseEntity;


/**
 * ClassName: EquipDataMark
 * Description: 称重记录标记实体类
 * date: 2017年10月26日 下午4:24:18
 * author: xietiebing
 */
@Entity
@Table(name="T_EQUIP_DATA_MARK")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class EquipDataMark extends BaseEntity implements Serializable{


	/**
	 * 
	 */
	private static final long serialVersionUID = -6570776338207616422L;
	
	/**
	 * equipData:所属设备数据
	 */
	@ManyToOne(fetch = FetchType.LAZY,optional = false)
	@JoinColumn(name="DATA_ID",referencedColumnName = "ID")
	private EquipData equipData;


	/**
	 * equipData:标记标签
	 */
	@ManyToOne(fetch = FetchType.LAZY,optional = false)
	@JoinColumn(name="LABEL_ID",referencedColumnName = "ID")
	private MarkLabel markLabel;


	public EquipData getEquipData() {
		return equipData;
	}


	public void setEquipData(EquipData equipData) {
		this.equipData = equipData;
	}


	public MarkLabel getMarkLabel() {
		return markLabel;
	}


	public void setMarkLabel(MarkLabel markLabel) {
		this.markLabel = markLabel;
	}


	@Override
	public String toString() {
		return "EquipDataMark [equipData=" + equipData + ", markLabel=" + markLabel + "]";
	}
	

	
}
